<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf"%>
</script>
<style type="text/css">
.td {
	width: 7%;
	overflow: hidden;
	height: 15%;
	text-align: center
}

.form-control {
	position: abslute;
	top: 20%;
	right: 20%;
	float: right"
}

.input-text {
	width: 100%;
	height: 100%
}

.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}

label[class^="btn btn-default"] {
	margin-top: -4px;
}
</style>
</head>
<body>
	<div style="width: 100%; height: 300px; overflow-x: auto;">
		<section class="panel panel-default">
		<table border="1" style="margin: 0 auto;">
			<tr class="tr ">
				<td class="td">日期</td>
				<td class="td"><input type="text" class="form-control"
							readonly="readonly" name="id" value="${partsReturnFormMap.deliverDate}"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
			</tr>
			<tr>
				<td class="td">序号</td>
				<td class="td">部门</td>
				<td class="td">供应商</td>
				<td class="td">采购单号</td>
				<td class="td">物料编码</td>
				<td class="td">名称</td>
				<td class="td">规格型号</td>
				<td class="td">单位</td>
				<td class="td">数量</td>
				<td class="td">单价</td>
				<td class="td">金额</td>
				<td class="td" colspan="2">备注</td>
			</tr>
			<tr>
			<tbody id="tbl">
				<c:forEach var="h" items="${partsReturnFormMaps }">
					<tr>
						<td><input type="text" class="form-control"
							readonly="readonly" name="id" value="${h.id}"></td>
						<td><input type="text" class="form-control"
							readonly="readonly" name="id" value="${h.departmentId}"></td>
						<td><input type="text" class="form-control"
							readonly="readonly" name="id" value="${h.supplierId}"></td>
						<td><input type="text" class="form-control"
							readonly="readonly" name="buyId" value="${h.buyId}"></td>
						<td><input type="text" class="form-control" name="materialCode"
							readonly="readonly" value="${h.metalsBom.materialCode}"></td>
						<td><input type="text" class="form-control" name="name"
							readonly="readonly" value="${h.metalsBom.name}"></td>
						<td><input type="text" class="form-control" name="specifications"
							readonly="readonly" value="${h.metalsBom.specifications}"></td>
						<td><input type="text" class="form-control" id="handleTime"
							readonly="readonly" name="unit" value="${h.metalsBom.unit}"></td>
						<td><input type="text" class="form-control"
							readonly="readonly" name="number" value="${h.purchaseRequest.number}"></td>
						<td><input type="text" class="form-control"
							readonly="readonly" name="price" value="${h.purchaseRequest.price}"></td>
						<td><input type="text" class="form-control" name="total"
							readonly="readonly" value="${h.purchaseRequest.total}"></td>
						<td colspan="2"><input type="text" class="form-control"
							name="comment" readonly="readonly" value="${h.returnReason}"></td>
					</tr>
				</c:forEach>
			</tbody>
			</tr>
			<tr>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td">仓管员</td>
				<td class="td">会计</td>
			</tr>
			<tr>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td">&nbsp;</td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td">
					<c:forEach var="u" items="${userFormMaps }">
						<c:if test="${u.position_id==27}">
							<input type="text" readonly="readonly" class="form-control" name="remark_1" value="${u.userName}" >
						</c:if>
					</c:forEach>
				</td>
				<td class="td">
					<c:forEach var="u" items="${userFormMaps }">
						<c:if test="${u.position_id==4}">
							<input type="text" readonly="readonly" class="form-control" name="remark_1" value="${u.userName}" >
						</c:if>
					</c:forEach>
				</td>
			</tr>
			<tr>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td">日期</td>
				<td class="td">日期</td>
			</tr>
			<tr>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td">&nbsp;</td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td">
					<c:forEach var="u" items="${userFormMaps }">
						<c:if test="${u.position_id==27}">
							<input type="text" readonly="readonly" class="form-control" name="remark_1" value="${u.auditTime}" >
						</c:if>
					</c:forEach>
				</td>
				<td class="td">
					<c:forEach var="u" items="${userFormMaps }">
						<c:if test="${u.position_id==4}">
							<input type="text" readonly="readonly" class="form-control" name="remark_1" value="${u.auditTime}" >
						</c:if>
					</c:forEach>
				</td>
			</tr>
		</table>
	</div>
</body>
</html>